home *** CD-ROM | disk | FTP | other *** search
- import javax.microedition.lcdui.Alert;
- import javax.microedition.lcdui.AlertType;
- import javax.microedition.lcdui.Canvas;
- import javax.microedition.lcdui.Command;
- import javax.microedition.lcdui.CommandListener;
- import javax.microedition.lcdui.Displayable;
- import javax.microedition.lcdui.Font;
- import javax.microedition.lcdui.Graphics;
- import javax.microedition.lcdui.Image;
-
- public class CalcCanvas extends Canvas implements CommandListener {
- // $FF: renamed from: x int
- private int field_0 = 40;
- // $FF: renamed from: y int
- private int field_1 = 0;
- private int key = 0;
- private int action = 0;
- private int keyId = 0;
- private int arrow = 0;
- private int keyPress = 0;
- Command aboutCommand = new Command(Resources.getText(4), 1, 1);
- Command helpCommand = new Command(Resources.getText(3), 1, 1);
- Command exitCommand = new Command(Resources.getText(5), 7, 1);
- private Image[] keys = new Image[14];
- private Image[] digits = new Image[13];
- private Image[] frames = new Image[3];
- private Image[] arrows = new Image[3];
- private Image[] drg = new Image[3];
- // $FF: renamed from: m javax.microedition.lcdui.Image[]
- private Image[] field_2 = new Image[1];
- private Calculator calc = new Calculator();
- private int[] digPos = new int[16];
- private Position[] keyPos = new Position[14];
- private String[] func = new String[]{"=", "+", "-", "*", "/", "x^y", "x^2", "1/x", "sqrt", "ln", "log", "sin", "cos", "tan", "asin", "acos", "atan", "n!", "e", "pi", "MC", "MR", "MS", "M+", Resources.getText(8)};
- private int funcIndex = 1;
- MicroCalc midlet;
- Intro parent;
-
- public CalcCanvas(MicroCalc var1, Intro var2) {
- this.midlet = var1;
- this.parent = var2;
- this.frames[0] = this.getImage("img/numframe.png");
- this.frames[1] = this.getImage("img/drg.png");
- this.frames[2] = this.getImage("img/error.png");
- this.keys[0] = this.getImage("img/zero.png");
- this.keys[1] = this.getImage("img/one.png");
- this.keys[2] = this.getImage("img/two.png");
- this.keys[3] = this.getImage("img/three.png");
- this.keys[4] = this.getImage("img/four.png");
- this.keys[5] = this.getImage("img/five.png");
- this.keys[6] = this.getImage("img/six.png");
- this.keys[7] = this.getImage("img/seven.png");
- this.keys[8] = this.getImage("img/eight.png");
- this.keys[9] = this.getImage("img/nine.png");
- this.keys[10] = this.getImage("img/decimal.png");
- this.keys[11] = this.getImage("img/sign.png");
- this.keys[12] = this.getImage("img/up.png");
- this.keys[13] = this.getImage("img/down.png");
- this.digits[0] = this.getImage("img/zero1.png");
- this.digits[1] = this.getImage("img/one1.png");
- this.digits[2] = this.getImage("img/two1.png");
- this.digits[3] = this.getImage("img/three1.png");
- this.digits[4] = this.getImage("img/four1.png");
- this.digits[5] = this.getImage("img/five1.png");
- this.digits[6] = this.getImage("img/six1.png");
- this.digits[7] = this.getImage("img/seven1.png");
- this.digits[8] = this.getImage("img/eight1.png");
- this.digits[9] = this.getImage("img/nine1.png");
- this.digits[10] = this.getImage("img/point.png");
- this.digits[11] = this.getImage("img/minus.png");
- this.digits[12] = this.getImage("img/nominus.png");
- this.arrows[0] = this.getImage("img/select.png");
- this.arrows[1] = this.getImage("img/uppress.png");
- this.arrows[2] = this.getImage("img/downpress.png");
- this.drg[0] = this.getImage("img/deg.png");
- this.drg[1] = this.getImage("img/rad.png");
- this.drg[2] = this.getImage("img/grad.png");
- this.field_2[0] = this.getImage("img/m.png");
- this.digPos[0] = 3;
- this.digPos[1] = 13;
- this.digPos[2] = 20;
- this.digPos[3] = 23;
- this.digPos[4] = 30;
- this.digPos[5] = 33;
- this.digPos[6] = 40;
- this.digPos[7] = 43;
- this.digPos[8] = 50;
- this.digPos[9] = 53;
- this.digPos[10] = 60;
- this.digPos[11] = 63;
- this.digPos[12] = 70;
- this.digPos[13] = 73;
- this.digPos[14] = 80;
- this.digPos[15] = 83;
- this.keyPos[0] = new Position(21, 57);
- this.keyPos[1] = new Position(0, 21);
- this.keyPos[2] = new Position(21, 21);
- this.keyPos[3] = new Position(42, 21);
- this.keyPos[4] = new Position(0, 33);
- this.keyPos[5] = new Position(21, 33);
- this.keyPos[6] = new Position(42, 33);
- this.keyPos[7] = new Position(0, 45);
- this.keyPos[8] = new Position(21, 45);
- this.keyPos[9] = new Position(42, 45);
- this.keyPos[10] = new Position(0, 57);
- this.keyPos[11] = new Position(42, 57);
- this.keyPos[12] = new Position(67, 14);
- this.keyPos[13] = new Position(67, 57);
- this.funcIndex = 1;
- CalcManager.initCalc();
- this.calc.initCalculator();
- this.calc.drg = 0;
- ((Displayable)this).addCommand(this.helpCommand);
- ((Displayable)this).addCommand(this.aboutCommand);
- ((Displayable)this).addCommand(this.exitCommand);
- ((Displayable)this).setCommandListener(this);
- }
-
- public void commandAction(Command var1, Displayable var2) {
- if (var1 == this.exitCommand) {
- this.midlet.destroyApp(false);
- } else if (var1 == this.aboutCommand) {
- Alert var3 = new Alert(Resources.getText(0), Resources.getText(1), (Image)null, (AlertType)null);
- var3.setTimeout(-2);
- this.midlet.display.setCurrent(var3, this);
- } else if (var1 == this.helpCommand) {
- Alert var4 = new Alert(Resources.getText(3), Resources.getText(2), (Image)null, (AlertType)null);
- var4.setTimeout(-2);
- this.midlet.display.setCurrent(var4, this);
- }
-
- }
-
- public void delay(int var1) {
- try {
- Thread.sleep((long)var1);
- } catch (Exception var3) {
- ((Throwable)var3).printStackTrace();
- }
-
- }
-
- private Image getImage(String var1) {
- try {
- return Image.createImage("/" + var1);
- } catch (Exception var2) {
- return null;
- }
- }
-
- protected void hideNotify() {
- }
-
- public void keyPressed(int var1) {
- try {
- this.key = ((Canvas)this).getGameAction(var1);
- if (this.key > 0) {
- switch (this.key) {
- case 1:
- this.action = 2;
- if (this.funcIndex == 0) {
- this.funcIndex = this.func.length - 1;
- } else {
- --this.funcIndex;
- }
-
- this.keyId = 12;
- this.arrow = 0;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- this.delay(100);
- this.arrow = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- break;
- case 2:
- this.action = 1;
- this.keyId = 16;
- CalcManager.delLast();
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- case 3:
- case 4:
- case 7:
- default:
- break;
- case 5:
- this.action = 3;
- this.keyId = 14;
- if (this.calc.drg == 0) {
- this.calc.drg = 1;
- } else if (this.calc.drg == 1) {
- this.calc.drg = 2;
- } else if (this.calc.drg == 2) {
- this.calc.drg = 0;
- }
-
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- break;
- case 6:
- this.action = 2;
- if (this.funcIndex == this.func.length - 1) {
- this.funcIndex = 0;
- } else {
- ++this.funcIndex;
- }
-
- this.keyId = 13;
- this.arrow = 0;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- this.delay(100);
- this.arrow = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- break;
- case 8:
- this.action = 4;
- this.keyId = 15;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- if (this.funcIndex == 24) {
- CalcManager.clearCurrValue();
- this.calc.initCalculator();
- this.action = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- CalcManager.isNewValue = true;
- } else if (this.funcIndex == 20) {
- CalcManager.memory = MathFP.toFP("0");
- this.action = 6;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- } else if (this.funcIndex == 22) {
- CalcManager.memory = CalcManager.getCurrValueL();
- this.action = 6;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- } else if (this.funcIndex == 23) {
- CalcManager.memory = MathFP.add(CalcManager.memory, CalcManager.getCurrValueL());
- this.action = 6;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- } else {
- this.calc.calculate(this.funcIndex);
- this.action = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- CalcManager.isNewValue = false;
- }
-
- this.delay(100);
- this.funcIndex = 1;
- this.action = 2;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- }
- }
-
- if (var1 > 0) {
- switch (var1) {
- case 35:
- CalcManager.isNewValue = true;
- this.action = 5;
- this.keyId = 11;
- this.keyPress = 0;
- CalcManager.negative ^= true;
- CalcManager.currValL = MathFP.mul(CalcManager.currValL, MathFP.toFP("-1"));
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- this.delay(100);
- this.keyPress = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- default:
- break;
- case 42:
- CalcManager.isNewValue = true;
- this.action = 1;
- this.keyId = 10;
- this.keyPress = 0;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- this.delay(100);
- this.keyPress = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- break;
- case 48:
- CalcManager.isNewValue = true;
- this.action = 1;
- this.keyId = 0;
- this.keyPress = 0;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- this.delay(100);
- this.keyPress = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- break;
- case 49:
- CalcManager.isNewValue = true;
- this.action = 1;
- this.keyPress = 0;
- this.keyId = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- this.delay(100);
- this.keyPress = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- break;
- case 50:
- CalcManager.isNewValue = true;
- this.action = 1;
- this.keyId = 2;
- this.keyPress = 0;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- this.delay(100);
- this.keyPress = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- break;
- case 51:
- CalcManager.isNewValue = true;
- this.action = 1;
- this.keyId = 3;
- this.keyPress = 0;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- this.delay(100);
- this.keyPress = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- break;
- case 52:
- CalcManager.isNewValue = true;
- this.action = 1;
- this.keyId = 4;
- this.keyPress = 0;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- this.delay(100);
- this.keyPress = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- break;
- case 53:
- CalcManager.isNewValue = true;
- this.action = 1;
- this.keyId = 5;
- this.keyPress = 0;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- this.delay(100);
- this.keyPress = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- break;
- case 54:
- CalcManager.isNewValue = true;
- this.action = 1;
- this.keyId = 6;
- this.keyPress = 0;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- this.delay(100);
- this.keyPress = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- break;
- case 55:
- CalcManager.isNewValue = true;
- this.action = 1;
- this.keyId = 7;
- this.keyPress = 0;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- this.delay(100);
- this.keyPress = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- break;
- case 56:
- CalcManager.isNewValue = true;
- this.action = 1;
- this.keyId = 8;
- this.keyPress = 0;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- this.delay(100);
- this.keyPress = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- break;
- case 57:
- CalcManager.isNewValue = true;
- this.action = 1;
- this.keyId = 9;
- this.keyPress = 0;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- this.delay(100);
- this.keyPress = 1;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- }
- }
- } catch (Exception var2) {
- }
-
- }
-
- public void keyRepeated(int var1) {
- this.keyPressed(var1);
- }
-
- public void paint(Graphics var1) {
- try {
- Font var2 = Font.getFont(32, 0, 0);
- Font var3 = Font.getFont(32, 0, 8);
- var1.setColor(0);
- if (this.action == 0) {
- var1.setColor(16777215);
- var1.fillRect(0, 0, 101, 69);
- var1.setColor(0);
- var1.drawImage(this.frames[0], 0, 0, 20);
- this.field_0 = this.digPos[0];
- this.field_1 = 2;
- if (CalcManager.negative && CalcManager.currValL == MathFP.toFP("0")) {
- CalcManager.negative = false;
- }
-
- if (CalcManager.negative) {
- var1.drawImage(this.digits[11], this.field_0, this.field_1, 20);
- } else {
- var1.drawImage(this.digits[12], this.field_0, this.field_1, 20);
- }
-
- CalcManager.parseCurrValue();
- this.field_1 = 2;
- int var5 = CalcManager.numbers.length;
-
- for(int var6 = 0; var6 < var5; ++var6) {
- this.field_0 = this.digPos[var6];
- if (CalcManager.numbers[var6] != -1) {
- var1.drawImage(this.digits[CalcManager.numbers[var6]], this.field_0, this.field_1, 20);
- }
- }
-
- var1.drawImage(this.frames[1], 0, 13, 20);
- var1.setFont(var3);
- var1.drawImage(this.drg[this.calc.drg], 2, 13, 20);
- if (CalcManager.memory != MathFP.toFP("0")) {
- var1.drawImage(this.field_2[0], 35, 13, 20);
- }
-
- for(int var7 = 0; var7 <= 13; ++var7) {
- this.field_0 = this.keyPos[var7].x;
- this.field_1 = this.keyPos[var7].y;
- var1.drawImage(this.keys[var7], this.field_0, this.field_1, 20);
- }
-
- this.field_0 = 90;
- this.field_1 = 38;
- var1.drawImage(this.arrows[0], this.field_0, this.field_1, 20);
- var1.setColor(16777215);
- var1.fillRect(62, 25, 28, 32);
- var1.setColor(0);
- this.field_0 = 77;
- this.field_1 = 23;
- this.field_1 = 39 - var3.getBaselinePosition() / 2;
- int var8 = this.field_1 - var3.getBaselinePosition() - 1;
- int var9 = this.field_1 + var3.getBaselinePosition() + 1;
- var1.setFont(var3);
- String var4;
- if (this.funcIndex == 0) {
- var4 = this.func[this.func.length - 1];
- } else {
- var4 = this.func[this.funcIndex - 1];
- }
-
- var1.drawString(var4, this.field_0 - var3.stringWidth(var4) / 2, var8, 20);
- var4 = this.func[this.funcIndex];
- var1.drawString(var4, this.field_0 - var3.stringWidth(var4) / 2, this.field_1, 20);
- if (this.funcIndex == this.func.length - 1) {
- var4 = this.func[0];
- } else {
- var4 = this.func[this.funcIndex + 1];
- }
-
- var1.drawString(var4, this.field_0 - var3.stringWidth(var4) / 2, var9, 20);
- }
-
- if (this.action == 1) {
- if (CalcManager.error) {
- var1.drawImage(this.frames[2], 0, 0, 20);
- CalcManager.clearCurrValue();
- CalcManager.initCalc();
- this.calc.initCalculator();
- CalcManager.error = false;
- } else if (this.keyId != 16 && this.keyId != 15) {
- if (this.keyPress == 0) {
- this.field_0 = this.keyPos[this.keyId].x + 1;
- this.field_1 = this.keyPos[this.keyId].y + 1;
- var1.drawRect(this.field_0, this.field_1, 16, 8);
- var1.drawImage(this.frames[0], 0, 0, 20);
- var1.drawImage(this.frames[1], 0, 13, 20);
- var1.setFont(var3);
- var1.drawImage(this.drg[this.calc.drg], 2, 13, 20);
- if (CalcManager.memory != MathFP.toFP("0")) {
- var1.drawImage(this.field_2[0], 35, 13, 20);
- }
-
- this.field_0 = this.digPos[0];
- this.field_1 = 2;
- CalcManager.addCurrent(this.keyId);
- CalcManager.currValL = CalcManager.getCurrValueL();
- CalcManager.parseCurrValue();
- if (CalcManager.negative && CalcManager.currValL == MathFP.toFP("0")) {
- CalcManager.negative = false;
- }
-
- if (CalcManager.negative) {
- var1.drawImage(this.digits[11], this.field_0, this.field_1, 20);
- } else {
- var1.drawImage(this.digits[12], this.field_0, this.field_1, 20);
- }
-
- this.field_1 = 2;
- int var17 = CalcManager.numbers.length;
-
- for(int var20 = 0; var20 < var17; ++var20) {
- this.field_0 = this.digPos[var20];
- if (CalcManager.numbers[var20] != -1) {
- var1.drawImage(this.digits[CalcManager.numbers[var20]], this.field_0, this.field_1, 20);
- }
- }
- } else if (this.keyPress == 1) {
- this.field_0 = this.keyPos[this.keyId].x;
- this.field_1 = this.keyPos[this.keyId].y;
- var1.drawImage(this.keys[this.keyId], this.field_0, this.field_1, 20);
- }
- } else {
- var1.drawImage(this.frames[0], 0, 0, 20);
- var1.drawImage(this.frames[1], 0, 13, 20);
- var1.setFont(var3);
- var1.drawImage(this.drg[this.calc.drg], 2, 13, 20);
- if (CalcManager.memory != MathFP.toFP("0")) {
- var1.drawImage(this.field_2[0], 35, 13, 20);
- }
-
- this.field_0 = this.digPos[0];
- this.field_1 = 2;
- if (CalcManager.negative && CalcManager.currValL == MathFP.toFP("0")) {
- CalcManager.negative = false;
- }
-
- if (CalcManager.negative) {
- var1.drawImage(this.digits[11], this.field_0, this.field_1, 20);
- } else {
- var1.drawImage(this.digits[12], this.field_0, this.field_1, 20);
- }
-
- CalcManager.parseCurrValue();
- int var16 = CalcManager.numbers.length;
-
- for(int var19 = 0; var19 < var16; ++var19) {
- this.field_0 = this.digPos[var19];
- if (CalcManager.numbers[var19] != -1) {
- var1.drawImage(this.digits[CalcManager.numbers[var19]], this.field_0, this.field_1, 20);
- }
- }
- }
- } else if (this.action == 2) {
- var1.setColor(16777215);
- var1.fillRect(62, 25, 28, 32);
- var1.setColor(0);
- this.field_0 = 77;
- this.field_1 = 23;
- var1.setFont(var3);
- this.field_1 = 39 - var3.getBaselinePosition() / 2;
- int var18 = this.field_1 - var3.getBaselinePosition() - 1;
- int var21 = this.field_1 + var3.getBaselinePosition() + 1;
- String var13;
- if (this.funcIndex == 0) {
- var13 = this.func[this.func.length - 1];
- } else {
- var13 = this.func[this.funcIndex - 1];
- }
-
- var1.drawString(var13, this.field_0 - var3.stringWidth(var13) / 2, var18, 20);
- var13 = this.func[this.funcIndex];
- var1.drawString(var13, this.field_0 - var3.stringWidth(var13) / 2, this.field_1, 20);
- if (this.funcIndex == this.func.length - 1) {
- var13 = this.func[0];
- } else {
- var13 = this.func[this.funcIndex + 1];
- }
-
- var1.drawString(var13, this.field_0 - var3.stringWidth(var13) / 2, var21, 20);
- if (this.keyId == 12) {
- this.field_0 = this.keyPos[this.keyId].x;
- this.field_1 = this.keyPos[this.keyId].y;
- if (this.arrow == 0) {
- var1.drawImage(this.arrows[1], this.field_0, this.field_1, 20);
- }
-
- if (this.arrow == 1) {
- var1.drawImage(this.keys[12], this.field_0, this.field_1, 20);
- }
- } else if (this.keyId == 13) {
- this.field_0 = this.keyPos[this.keyId].x;
- this.field_1 = this.keyPos[this.keyId].y;
- if (this.arrow == 0) {
- var1.drawImage(this.arrows[2], this.field_0, this.field_1, 20);
- }
-
- if (this.arrow == 1) {
- var1.drawImage(this.keys[13], this.field_0, this.field_1, 20);
- }
- }
- } else if (this.action == 3) {
- this.field_0 = 0;
- this.field_1 = 13;
- var1.drawImage(this.frames[1], this.field_0, this.field_1, 20);
- this.field_0 = 3;
- this.field_1 = 12;
- var1.setFont(var3);
- var1.drawImage(this.drg[this.calc.drg], 2, 13, 20);
- if (CalcManager.memory != MathFP.toFP("0")) {
- var1.drawImage(this.field_2[0], 35, 13, 20);
- }
- } else if (this.action == 4) {
- var1.drawRect(62, 39 - var3.getBaselinePosition() / 2, 27, var3.getBaselinePosition() + 1);
- } else if (this.action == 5) {
- if (this.keyPress == 0) {
- this.field_0 = this.keyPos[this.keyId].x + 1;
- this.field_1 = this.keyPos[this.keyId].y + 1;
- var1.drawRect(this.field_0, this.field_1, 16, 8);
- this.field_0 = this.digPos[0];
- this.field_1 = 2;
- if (CalcManager.negative && CalcManager.currValL == MathFP.toFP("0")) {
- CalcManager.negative = false;
- }
-
- if (CalcManager.negative) {
- var1.drawImage(this.digits[11], this.field_0, this.field_1, 20);
- } else {
- var1.drawImage(this.digits[12], this.field_0, this.field_1, 20);
- }
- } else if (this.keyPress == 1) {
- this.field_0 = this.keyPos[this.keyId].x;
- this.field_1 = this.keyPos[this.keyId].y;
- var1.drawImage(this.keys[this.keyId], this.field_0, this.field_1, 20);
- }
- } else if (this.action == 6) {
- var1.drawImage(this.frames[1], 0, 13, 20);
- var1.drawImage(this.drg[this.calc.drg], 2, 13, 20);
- if (CalcManager.memory != MathFP.toFP("0")) {
- var1.drawImage(this.field_2[0], 35, 13, 20);
- }
- }
- } catch (Exception var10) {
- System.out.println("Error in Paint: " + ((Throwable)var10).getMessage());
- var1.drawImage(this.frames[2], 0, 0, 20);
- CalcManager.clearCurrValue();
- CalcManager.initCalc();
- this.calc.initCalculator();
- CalcManager.error = false;
- }
-
- }
-
- protected void showNotify() {
- this.action = 0;
- }
- }
-